require 'drb'
require 'server_interface'
require 'singleton'
class Server
  include Singleton

  def initialize
    @interface = ServerInterface.new(self)
  end

  def start
    DRb.start_service("druby://localhost:6790", @interface)
  end

  def daemon
    DRb.thread.join
  end

  def stop
    DRb.stop_service
  end

end


